<?php

/**
 * InsStage form base class.
 *
 * @method InsStage getObject() Returns the current form's model object
 *
 * @package    tfe
 * @subpackage form
 * @author     3emeIG
 * @version    SVN: $Id: sfDoctrineFormGeneratedInheritanceTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class BaseInsStageForm extends InscriptionForm
{
  protected function setupInheritance()
  {
    parent::setupInheritance();

    $this->widgetSchema   ['annee'] = new sfWidgetFormChoice(array('choices' => array(2005 => 2005, 2006 => 2006, 2007 => 2007, 2008 => 2008, 2009 => 2009, 2010 => 2010, 2011 => 2011, 2012 => 2012, 2013 => 2013, 2014 => 2014, 2015 => 2015, 2016 => 2016, 2017 => 2017, 2018 => 2018, 2019 => 2019, 2020 => 2020)));
    $this->validatorSchema['annee'] = new sfValidatorChoice(array('choices' => array(0 => 2005, 1 => 2006, 2 => 2007, 3 => 2008, 4 => 2009, 5 => 2010, 6 => 2011, 7 => 2012, 8 => 2013, 9 => 2014, 10 => 2015, 11 => 2016, 12 => 2017, 13 => 2018, 14 => 2019, 15 => 2020), 'required' => false));

    $this->widgetSchema   ['id_stage'] = new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Stage'), 'add_empty' => false));
    $this->validatorSchema['id_stage'] = new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Stage')));

    $this->widgetSchema->setNameFormat('ins_stage[%s]');
  }

  public function getModelName()
  {
    return 'InsStage';
  }

}
